const app = getApp();

Page({
  data: {
    show: {
      company: false
    }
  },

  onLoad(options) {

  },

  onChangeShow(e) {
    const { key } = e.currentTarget.dataset;
    const name = 'show.' + key;
    this.setData({ [name]: !this.data.show[key] });
  },

  onConfirm() {
    wx.showLoading({
      title: '加载中...',
    });
    setTimeout(() => {
      wx.hideLoading();
      wx.showToast({
        title: '投递成功，请注意邮箱反馈',
        icon: 'success'
      });
    }, 500);
  },
})